package org.androidpn.server.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * entity 游戏操作
 * 
 * @author 蔡琪
 * 
 */
@Entity
@Table(name = "tk_game_operation_info")
public class GameOperationInfo extends BaseEntity {

	private static final long serialVersionUID = 3577279776872018073L;

	/** 操作名称 */
	@Column(name = "operation_name")
	private String operationName;

	/** 操作值 */
	@Column(name = "operation_value")
	private String operationValue;

	/** 操作角色 */
	@ManyToOne(fetch = FetchType.LAZY)
	private Role role;

	/** 游戏房间 */
	@ManyToOne(fetch = FetchType.LAZY)
	private Room room;

	public String getOperationName() {
		return operationName;
	}

	public void setOperationName(String operationName) {
		this.operationName = operationName;
	}

	public String getOperationValue() {
		return operationValue;
	}

	public void setOperationValue(String operationValue) {
		this.operationValue = operationValue;
	}

	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	public Room getRoom() {
		return room;
	}

	public void setRoom(Room room) {
		this.room = room;
	}

}
